.class public Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;
.super Lcom/waiqin365/lightapp/kehu/view/CMCustomView;

# interfaces
.implements Lcom/waiqin365/lightapp/kehu/view/d;
.implements Ljava/util/Observer;


# instance fields
.field public a:Ljava/lang/String;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/RelativeLayout;

.field private f:Ljava/util/ArrayList;

.field private g:Ljava/util/ArrayList;

.field private h:Landroid/widget/LinearLayout;

.field private i:Landroid/widget/LinearLayout;

.field private s:Landroid/content/Context;

.field private t:Z

.field private u:Landroid/view/View;

.field private v:Landroid/view/View;

.field private w:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->a:Ljava/lang/String;

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    const-string/jumbo v0, "layout_inflater"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const v1, 0x7f03005e

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v0, 0x7f0c0083

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->u:Landroid/view/View;

    const v0, 0x7f0c005a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->v:Landroid/view/View;

    const v0, 0x7f0c02ab

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->e:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c02ac

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->b:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->b:Landroid/widget/TextView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/f;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/f;-><init>(Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c02ad

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->d:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->d:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/g;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/g;-><init>(Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c02a8

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->c:Landroid/widget/TextView;

    const v0, 0x7f0c02aa

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->h:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->h:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/h;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/h;-><init>(Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c02a9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->i:Landroid/widget/LinearLayout;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f()V

    return-void
.end method

.method private a(Ljava/util/ArrayList;)V
    .locals 0

    if-eqz p1, :cond_0

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->setData(Ljava/util/ArrayList;)V

    :cond_0
    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g()V

    return-void
.end method

.method private f()V
    .locals 8

    const/4 v7, 0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "AgencyView"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->m()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0, v3}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->setTag(Ljava/lang/Object;)V

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    new-instance v4, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    const-class v1, Lcom/waiqin365/lightapp/kehu/OfflineCmSelectMultiModeActivity;

    invoke-direct {v4, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "superTradeType"

    const-string/jumbo v1, "2"

    invoke-virtual {v4, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "{}"

    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string/jumbo v2, "customerIds"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->d()Ljava/lang/CharSequence;

    move-result-object v5

    invoke-virtual {v1, v2, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    move-object v1, v0

    :goto_0
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x0

    move v2, v0

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v2, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iget-object v6, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-ne v0, v6, :cond_0

    new-instance v6, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v6, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v6, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    const-string/jumbo v0, "2"

    iput-object v0, v6, Lcom/waiqin365/lightapp/kehu/b/am;->b:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_1

    :catch_0
    move-exception v1

    move-object v1, v0

    goto :goto_0

    :cond_1
    const-string/jumbo v0, "list"

    invoke-virtual {v4, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v0, "isOnline"

    invoke-virtual {v4, v0, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isAgency"

    invoke-virtual {v4, v0, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "jsonStr"

    invoke-virtual {v4, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "code"

    invoke-virtual {v4, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "returnTo"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->n:Ljava/lang/String;

    invoke-virtual {v4, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    const/16 v1, 0xcc

    invoke-virtual {v0, v4, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    :cond_2
    return-void
.end method

.method private g()V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    instance-of v0, v0, Landroid/app/Activity;

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "AgencyView"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->m()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->setTag(Ljava/lang/Object;)V

    new-instance v3, Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    const-class v1, Lcom/waiqin365/lightapp/kehu/CMAllSelectAgencyActivity;

    invoke-direct {v3, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v0, "{}"

    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string/jumbo v4, "customerIds"

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->d()Ljava/lang/CharSequence;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    :goto_0
    const-string/jumbo v4, "storeId"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->a:Ljava/lang/String;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->a:Ljava/lang/String;

    :goto_1
    invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "jsonStr"

    invoke-virtual {v3, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "code"

    invoke-virtual {v3, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "isedit"

    iget-boolean v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    invoke-virtual {v3, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "list"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->w:Ljava/util/ArrayList;

    invoke-virtual {v3, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    const/16 v1, 0xcc

    invoke-virtual {v0, v3, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/app/Activity;->overridePendingTransition(II)V

    :cond_0
    return-void

    :cond_1
    const-string/jumbo v1, ""

    goto :goto_1

    :catch_0
    move-exception v1

    goto :goto_0
.end method


# virtual methods
.method public a(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->indexOfChild(Landroid/view/View;)I

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->e()V

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 4

    const/4 v2, 0x0

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, ","

    invoke-virtual {v3, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :cond_1
    return-object v0
.end method

.method public c()Ljava/lang/CharSequence;
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->p:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->l:Ljava/lang/String;

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->c:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public d()Ljava/lang/CharSequence;
    .locals 4

    const/4 v2, 0x0

    new-instance v3, Ljava/lang/StringBuffer;

    invoke-direct {v3}, Ljava/lang/StringBuffer;-><init>()V

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, ","

    invoke-virtual {v3, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    invoke-virtual {v3}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :cond_1
    return-object v0
.end method

.method public e()V
    .locals 7

    const/4 v6, 0x0

    const/4 v0, 0x3

    const/16 v5, 0x8

    const/4 v3, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_3

    if-le v1, v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    move v1, v0

    :goto_0
    move v2, v3

    :goto_1
    if-ge v2, v1, :cond_1

    new-instance v4, Lcom/waiqin365/lightapp/kehu/view/AgencyItemView_vertical;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    invoke-direct {v4, v0, v6}, Lcom/waiqin365/lightapp/kehu/view/AgencyItemView_vertical;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v4, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyItemView_vertical;->setText(Ljava/lang/String;)V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    invoke-virtual {v4, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyItemView_vertical;->setEdit(Z)V

    invoke-virtual {v4, p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyItemView_vertical;->setDeleteListener(Lcom/waiqin365/lightapp/kehu/view/d;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_1

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    const v2, 0x7f0800fa

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    :goto_2
    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v5}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->c:Landroid/widget/TextView;

    invoke-static {v3, v3, v3}, Landroid/graphics/Color;->rgb(III)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_2

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->h:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->e:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->b:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    const v2, 0x7f0800a8

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_2

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->c:Landroid/widget/TextView;

    invoke-static {v3, v3, v3}, Landroid/graphics/Color;->rgb(III)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_2
.end method

.method public setBottomLineStatus(Z)V
    .locals 2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->v:Landroid/view/View;

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void

    :cond_0
    const/16 v0, 0x8

    goto :goto_0
.end method

.method public setData(Ljava/util/ArrayList;)V
    .locals 5

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->w:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v2

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-ge v1, v2, :cond_0

    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-virtual {v3, v1, v4}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/am;->d:Ljava/lang/String;

    invoke-virtual {v3, v1, v0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->e()V

    return-void
.end method

.method public setDisplayValue(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    const/16 v0, 0x2c

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->g:Ljava/util/ArrayList;

    invoke-static {p1, v0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->e()V

    return-void
.end method

.method public setEdit(Z)V
    .locals 4

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setFocusable(Z)V

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->u:Landroid/view/View;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v2

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-ge v1, v2, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/AgencyItemView_vertical;

    iget-boolean v3, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/kehu/view/AgencyItemView_vertical;->setEdit(Z)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    return-void
.end method

.method public setLabel(Ljava/lang/CharSequence;)V
    .locals 7

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->l:Ljava/lang/String;

    :cond_0
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->p:Z

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->s:Landroid/content/Context;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->c:Landroid/widget/TextView;

    const/4 v2, 0x2

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    const v5, 0x7f020400

    new-instance v6, Lcom/waiqin365/lightapp/kehu/view/i;

    invoke-direct {v6, p0}, Lcom/waiqin365/lightapp/kehu/view/i;-><init>(Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;)V

    invoke-static/range {v0 .. v6}, Lcom/fiberhome/gaea/client/d/g;->a(Landroid/content/Context;Landroid/widget/TextView;ILjava/lang/String;Ljava/lang/String;ILcom/fiberhome/gaea/client/d/j;)V

    :cond_1
    return-void
.end method

.method public setMustinput(Ljava/lang/String;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->setMustinput(Ljava/lang/String;)V

    const-string/jumbo v0, "1"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->t:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->u:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public setStoreId(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->a:Ljava/lang/String;

    return-void
.end method

.method public setValue(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    const/16 v0, 0x2c

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->f:Ljava/util/ArrayList;

    invoke-static {p1, v0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    return-void
.end method

.method public setViewIgnore(Z)V
    .locals 1

    if-eqz p1, :cond_0

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->setVisibility(I)V

    goto :goto_0
.end method

.method public update(Ljava/util/Observable;Ljava/lang/Object;)V
    .locals 2

    if-eqz p2, :cond_0

    instance-of v0, p2, Lcom/waiqin365/lightapp/view/a/a;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->n:Ljava/lang/String;

    move-object v0, p2

    check-cast v0, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    move-object v0, p2

    check-cast v0, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    if-eqz v0, :cond_0

    check-cast p2, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, p2, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    check-cast v0, Ljava/util/ArrayList;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/util/Observable;->deleteObserver(Ljava/util/Observer;)V

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AgencyView_vertical;->a(Ljava/util/ArrayList;)V

    :cond_0
    return-void
.end method
